package com.chenqi.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @description: 用户之间关系
 * @program: ardaicommunity
 * @author: ChenQi
 * @create: 2021-03-2021/3/13-08-57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("bms_follow")
public class Relationship {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 被关注的作者id
     */
    @TableField("parent_id")
    private Integer parentId;
    /**
     * 当前进行关注的作者id
     */
    @TableField("follower_id")
    private Integer followerId;
}
